package cn.wolfcode.luowowo.service;

import cn.wolfcode.luowowo.common.util.JsonResult;
import cn.wolfcode.luowowo.vo.StatisVO;

public interface ITravelStatisRedisService {
    /**
     * 加载页面的时候 操作攻略的阅读数
     * @param id  游记id
     * @param i1
     * @param i 阅读数加1
     */
    void statisAndUpdateViewnum(Long id, int i, int type );

    StatisVO getStatisRedis(String key);

    JsonResult favor(Long sId, Long uId, int userFavorType);

    JsonResult strategyThumbup(Long sid, Long userInfoId, int userFavorType);

    void setReplynumStatisRedis(Long detailId, int i, String sKey);

    boolean checkFavor(Long id, String ukey);

    public void initRedisStatis();

    void redisPersistent();

}
